/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package elaborate.h2x.transform;

import org.w3c.dom.Node;

/**
 *
 * @author lendle
 */
public class DefaultDefImpl implements Def{

    protected TransformingNodeId target;
    protected String defExp;
    protected Node node=null;

    public DefaultDefImpl() {
    }

    
    
    /**
     * Get the value of defExp
     *
     * @return the value of defExp
     */
    public String getDefExp() {
        return defExp;
    }

    /**
     * Set the value of defExp
     *
     * @param defExp new value of defExp
     */
    public void setDefExp(String defExp) {
        this.defExp = defExp;
    }


    /**
     * Get the value of target
     *
     * @return the value of target
     */
    public TransformingNodeId getTarget() {
        return target;
    }

    /**
     * Set the value of target
     *
     * @param target new value of target
     */
    public void setTarget(TransformingNodeId target) {
        this.target = target;
    }

    public Node getNode() {
        return this.node;
    }

    public void setNode(Node node) {
        this.node = node;
    }

    @Override
    public String toString() {
        return "{"+node.getNamespaceURI()+"}"+node.getLocalName();
    }
}
